home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / CALib & You… / Source / CALib / Implementation / SOMMem / SOMMem.cpp
Encoding:
C/C++ Source or Header  |  1995-12-07  |  1009 b   |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SOMMem.cpp
  3.  
  4.     Contains:    Source for SOMCustomMemoryMgr fragment for doc stub
  5.  
  6.     Owned by:    Jens Alfke
  7.  
  8.     Copyright:    (c)1995 Apple Computer, Inc. All Rights Reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>     1/12/95    jpa        Don't use obsolete Toolbox names. [1211211]
  13.          <2>      1/6/95    jpa        Fixed header comments.
  14.          <1>      1/6/95    jpa        first checked in
  15.  
  16.     To Do:
  17. */
  18.  
  19. #define DEBUG 0                    /* Define this to get a DebugStr when the lib loads */
  20.  
  21. #ifndef __CODEFRAGMENTS__
  22. typedef void* CFragInitBlockPtr;        /* To avoid having to include FragLoad.h */
  23. #endif
  24.  
  25.  
  26. extern "C" {
  27.  
  28. #if DEBUG && !defined(__TYPES__)
  29. extern void DebugStr(void*);
  30. #endif
  31.  
  32. #ifndef _MEMMGR_
  33. extern void* MMGetDefaultHeap();
  34. #endif
  35.  
  36. #ifdef __CFM68K__
  37.     pascal
  38. #endif
  39.            short SOMCustomEtcCFMInit( CFragInitBlockPtr );
  40. }
  41.  
  42.  
  43.  
  44.  
  45. short
  46. SOMCustomEtcCFMInit( CFragInitBlockPtr )
  47. {
  48. #if DEBUG
  49.     DebugStr("\pSOMCustomEtcCFMInit - CAProxyPart");
  50. #endif
  51.  
  52.     long* ourHeap = (long*) MMGetDefaultHeap();    // No-op; forces dependency on MM lib
  53.     
  54.     return 0;
  55. }
  56.